using UnityEngine;

public class Meat : MonoBehaviour, IFood
{
	[Header("Data")]
	public Food food;

	[Header("Requirement")]
	public new GameObject gameObject;

	public Food Eat()
	{
		Object.Destroy(gameObject);
		return food;
	}

	public bool IsDangerous(Creature creature)
	{
		return false;
	}

	public bool IsEatable(Creature creature)
	{
		return true;
	}

	public Vector2 GetPosition()
	{
		return base.transform.position;
	}

	public float GetSize()
	{
		return 1f;
	}

	private void OnDestroy()
	{
		CreatureController.WipeAggressorsInformation(this);
	}
}
